package top.saplf.sileny.reader.shelf

import io.realm.RealmList
import io.realm.RealmObject
import io.realm.annotations.PrimaryKey
import top.saplf.sileny.ext.PoKo

/**
 * @author Saplf on 17/4/19
 */
@PoKo data class LocalBook(
        @PrimaryKey var id: String,
        var cover: String? = null,
        var name: String,
        var path: String,
        var seek: Long = 0L,
        var postfix: String = "txt",
        var bookMarks: RealmList<BookMark>? = null
): RealmObject()

@PoKo data class BookMark(
        @PrimaryKey var id: String,
        var seek: Long,
        var snapshot: String
): RealmObject()
